import request from '../utils/request';
import type { Student, Students } from '../models/students';

// 获取学生列表
export const getStudentsApi = () => {
  return request.get<any, Students>('/students');
}

// 添加学生
export const addStudentApi = (student: Student) => {
  return request.post('/students', student);
}